package edu.xhu.behavior.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.xhu.model.behavior.pojos.BiliUserChat;
import edu.xhu.model.behavior.pojos.BiliUserChatDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface BiliUserChatMapper extends BaseMapper<BiliUserChat> {
    /**
     * 根据userId和toId,批量更新聊天表
     */
    int updateBatchByFromAndToId(List<BiliUserChat> chats, int size);

    /**
     * 根据ids,批量清除未读
     */
    int updateForCleanUnRead(Map<String, List<Long>> ids);
}
